<%-- <%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="/static/build/layui.css" media="all">
<%@include file="/common/common.jspf"%>
<script type="text/javascript"
	src="${ctx}/js/transport/rtrefuel/transportrefuel_add"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>

</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/transportrefuel/transport_addEntity.shtml">
		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<label class="col-sm-3 control-label">车牌号</label>
				<div class="col-sm-9">

					<!-- <input type="text" class="form-control" placeholder="请输入车牌号"
						name="transportApplyFormMap.licenseNo" id="licenseNo" />  -->

					<select class="form-control" id="licenseNo"
						name="transportrefuelFormMap.licenseNo">

					</select>

				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>

			<div class="form-group">
				<label class="col-sm-3 control-label">车老板姓名</label>
				<div class="col-sm-9">
					<select class="form-control selectinfo"
						name="transportrefuelFormMap.carBossNumber">
						<c:forEach var="key" items="${motorcadeInfoFormMap }">
							<option value="${key.id}">${key.carBossName}</option>
						</c:forEach>
					</select>
				</div>
			</div>

			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">司机</label>
				<div class="col-sm-9">
				<!-- <div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入司机"
						name="transportrefuelFormMap.driverName" id="driverName" />
				</div> -->
				
				<select class="form-control" id="driverName"
						name="transportrefuelFormMap.driverName">
				</select>
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">车老板联系电话</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入车老板联系电话"
						name="transportrefuelFormMap.carBossNumber" id="carBossNumber" />

				</div>
			</div>

			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">司机联系电话</label>
				<div class="col-sm-9">
					<input type="text" placeholder="请输入司机联系电话" class="form-control"
						name="transportrefuelFormMap.driverNumber" />
				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">加油负责人</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入加油负责人"
						name="transportrefuelFormMap.refuelporpery" id="refuelporpery" />

				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">本次加油公里数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入本次加油公里数"
						name="transportrefuelFormMap.refuelNow" id="refuelNow" />

				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">加油量（升）</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入加油量（升）"
						name="transportrefuelFormMap.cheakId" id="cheakId" />

				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">上次加油公里数</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输上次加油公里数"
						name="transportrefuelFormMap.kilometreNumber" id="kilometreNumber" />

				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">领用日期</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入领用日期"
						name="transportrefuelFormMap.receiveDate" id="receiveDate" />

				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">起始时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入上次加油时间"
						name="transportrefuelFormMap.startingTime" id="startingTime" />

				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">结束时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control" placeholder="请输入本次加油时间"
						name="transportrefuelFormMap.endTime" id="endTime" />

				</div>
			</div>
			<div class="line line-dashed line-lg pull-in"></div>
		</div>
		</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">新增</button>
		</footer> </section>
	</form>
	<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
	<script type="text/javascript">
	jeDate({
		dateCell : "#startingTime",
		format : "YYYY-MM-DD hh:mm:ss",
		isinitVal : false,
		isTime : true,
		isClear : false,
		minDate : "2014-09-19 00:00:00"
	});
	jeDate({
			dateCell : "#endTime",
			format : "YYYY-MM-DD hh:mm:ss",
			isinitVal : false,
			isTime : true,
			isClear : false,
			minDate : "2014-09-19 00:00:00"
		});
	jeDate({
			dateCell : "#receiveDate",
			format : "YYYY-MM-DD hh:mm:ss",
			isinitVal : false,
			isTime : true,
			isClear : false,
			minDate : "2014-09-19 00:00:00"
		});
	 	$(".selectinfo").click(function() {
				$("#licenseNo").empty();
				$("#driverName").empty();
				var id = $(this).val();
				$.getJSON(rootPath + "/transportrefuel/transportrefuel_id.shtml",
						"id=" + id, function(data) {
							$("#carBossNumber").val(data.carBossNumber);
							if(data.licenseNo){
								$("#licenseNo").append("<option>" + data.licenseNo + "</option>");
							}else{
								$("#licenseNo").append("<option>无</option>");
								return
							}
							
						})
			})
	</script>
</body>
</html> --%>